﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Dissemination.MVC.Models.Country>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ETPOD: Countries management
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
	Countries management
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Countries management</h1>

    <p>&nbsp;</p>
    <ul class="elements-list">
        <li class="first">
            <div class="cell350 flota">Code</div>
            <div class="cell150 flota">Name</div>
            <div class="enlaces flota"><asp:Literal runat="server" Text="<%$ Resources:Literals, ActionsLiteral%>" /></div>
        </li>

        <% foreach (var item in Model) { %>
    
        <li>
            <div class="cell350 flota"><%= Html.ActionLink(Html.Encode(item.CountryCode), "Details", new { id = item.CountryID })%></div>
            <div class="cell150 flota"><%= Html.Encode(item.CountryName) %></div> 
            <div class="enlaces flota">
                <%= Html.ActionLink("Edit", "Edit", new { id=item.CountryID }) %>
                <%= Html.ActionLink("Delete", "Delete", new { id=item.CountryID })%>
            </div> 
        </li>    
        <% } %>

    </ul>
    <p>&nbsp;</p>
    <p class="enlaces">
        <%= Html.ActionLink("Create new country", "Create") %>
    </p>

</asp:Content>

